﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MaLu.Data;
using MaLu.Common;
using MaLu.BusiLogic;
using System.Text;
using MaLu.Framework.Common;

namespace MaluJg.web.StatsIn
{
    public partial class UVBooth : SUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
             
            }

        }
      
        public void LoadData()
        {

            DataTable dt = SqlHelper.Instance.ExecuteDataTable(Provider, @"SELECT * ,DicVillages.Name as DicVillagesName FROM [FBoothDetails] join DicVillages on DicVillages.id =FBoothDetails.VillageID where FBoothDetails.id=" + RecordID);
            if (dt.Rows.Count > 0)
            {
              
              
                DataRow dr = dt.Rows[0];
                tbYear.Text = dr["Year"].ToString();
                tbName.Text = dr["FamilyName"].ToString();
                tbIsMember.Text = dr["IsPartner"].ToString().ToLower() == "true" ? "是" : "否";
                tbDays.Text = dr["days"].ToString();
                tbMoney.Text = dr["Money"].ToString();
                tbVillage.Text = dr["DicVillagesName"].ToString();
            }
        }
    }
}